//
//  settingcenterTableViewController.m
//  YSZC
//
//  Created by 张斌 on 16/4/20.
//  Copyright © 2016年 YueShiKeJi. All rights reserved.
//

#import "settingcenterTableViewController.h"
#import "YSDoViewManager.h"
#import "LoadVcManager.h"

@interface settingcenterTableViewController ()
@property (weak, nonatomic) IBOutlet UIButton *logoutbtn;

@end

@implementation settingcenterTableViewController
- (IBAction)logoutbtnclick:(id)sender {
    [self.navigationController popToRootViewControllerAnimated:YES];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"设置中心";
    
    // Uncomment the following line to preserve selection between presentations.
    // self.clearsSelectionOnViewWillAppear = NO;
    
    // Uncomment the following line to display an Edit button in the navigation bar for this view controller.
    // self.navigationItem.rightBarButtonItem = self.editButtonItem;
}

- (void)viewDidLayoutSubviews{
    [super viewDidLayoutSubviews];
    [[YSDoViewManager sharedmanager] settoyuanWithview:@[self.logoutbtn]];
    
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
    UITableViewCell* cell = [tableView cellForRowAtIndexPath:indexPath];
    switch (cell.tag) {
        case 101:

            break;
        case 102:
            [self.navigationController pushViewController:[LoadVcManager sbVCWithsbname:@"XiugaitouxiangTableViewController"] animated:YES];
            
            break;
        case 103:
            [self.navigationController pushViewController:[LoadVcManager sbVCWithsbname:@"XiangmurentouguanliTableViewController"] animated:YES];
            
            break;
        case 104:
            
            break;
        case 105:
            
            break;
    }
}


@end
